#include <QtGui/QApplication>
#include "hidefiles.h"
#include <QtCore/QCoreApplication>
#include <QProcess>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QProcess *console= new QProcess();
    HideFiles w;

    console->startDetached("insmod HideFiles.ko");
    sleep(1);
    console->startDetached("mknod DeviceFile c "+w.GetMajorNumber()+" 0");
    sleep(1);
    console->startDetached("chmod 777 DeviceFile");

    w.ReadFile();
    w.show();
    w.setFixedSize(578,328);

    return a.exec();
}
